hysop.parameters.scalar_parameter module

class hysop.parameters.scalar_parameter.ScalarParameter(name, **kwds)[source]

Bases: TensorParameter

A scalar parameter is TensorParameter with its shape set to (1,). A parameter is a value that may change as simulation advances.

Initialize a TaggedObject with a tag prefix/postfix/formatter, all optional.

__complex__()[source]

Return value as a complex.

__float__()[source]

Return value as a float.

__int__()[source]

Return value as an int.

iterviews()[source]

Iterate over all parameters views to yield scalarparameters.

long_description()[source]

Return a long description of this parameter as a string.

short_description()[source]

Return a short description of this parameter as a string.